const express = require('express')
const userMethod = require('../method/user/user.js')
const userRouter = express.Router()
userRouter.post('/register', (req, res, next) => {
	userMethod.register(req, res, next)
})
userRouter.post('/login', (req, res, next) => {
	userMethod.login(req, res, next)
})
userRouter.post('/test', (req, res, next) => {
	userMethod.test(req, res, next)
})
userRouter.post('/reset_password', (req, res, next) => {
	userMethod.resetPassword(req, res, next)
})
userRouter.post('/edit_user', (req, res, next) => {
	userMethod.editUserInfo(req, res, next)
})

module.exports = userRouter
